<template>
  <div>
    <input type="text" v-model="num" />
  </div>
</template>

<script>
export default {
  // props: ["value"],
  props: {
    num: {
      type: Number
    }
  },
  model: {
    prop: "num",
    emit: "yaya"
  },
  watch: {
    num(newVal) {
      this.$emit("yaya", newVal);
    }
  }
};
</script>

<style lang="scss" scoped></style>
